﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
using System.Web.UI;
using System.Web.UI.WebControls;

using efish.Framework.Web;
using efish.Framework.Model;
using efish.Framework.Service;

public partial class Controls_CategoryMenu : BaseControl
{
    public Category Category
    {
        get
        {
            return _categoty;
        }
        set
        {
            if (value != null)
            {
                lblTitle.Text = value.Title;
                items.DataSource = value.ChildCategories;
            }
        }
    }

    private string _detailUrl = "/store/ShowCategory.aspx?ID={0}";
    public string DetailUrl
    {
        get { return _detailUrl; }
        set { _detailUrl = value; }
    }

    protected void Page_Load(object sender, EventArgs e)
    {

    }
}
